method of converting decimal numbers to binary numbers